package com.huluobo.lib_base

import com.google.gson.Gson
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.RequestBody

/**
 *  Created by LC on 2025/5/23.
 */
open class BaseRepo {
    fun mapToJson(map: Map<String, Any>): RequestBody {
        val json = Gson().toJson(map)
        return RequestBody.create("application/json".toMediaTypeOrNull(), json)
    }
}